package com.itheima.string;

public class StringDemo1 {
    public static void main(String[] args) {
        String name ="itheima";
        System.out.println(name);

        String str1 = new String();
        System.out.println(str1);

        String str2 = new String("hello");
        System.out.println(str2);

        char[] chars = {'h','e','l','l','o'};
        String str3 = new String(chars);
        System.out.println(str3);

        byte[] bytes = {104,101,108,108,111};
        String str4 = new String(bytes);
        System.out.println(str4);

    }
}
